<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<input id="text" type="text" />
		<button type="button" id="add">add</button>
		<button type="reset" id="clear">重置</button>
		
		<script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
		<script>
			$(function(){
				$('#add').click(function(){
					$('#text').val(1);
				});
				$('#clear').click(function(){
					$('#text').val('');
				})
			}
			)
		</script>
	</body>
</html>
